<?php

namespace app\backend\validate;

use app\common\RootValidate;

class SpreadValidate extends RootValidate
{
    protected $rule = [
        'id' => 'require',
        'userType' => 'require',
        'platform' => 'require',
        'type' => 'require',
        'nickname' => 'require',
        'price' => 'require',
    ];

    protected $message = [
        'id.require' => '无效的KOL推广',
        'userType.require' => '请选择用户类型',
        'platform.require' => '请选择推广平台',
        'type.require' => '请选择付费方式',
        'nickname.require' => '请输入KOL昵称',
        'price.require' => '请输入推广价格',
    ];

    protected $scene = [
        'add' => ['platform', 'type', 'nickname', 'price'],
        'edit' => ['id', 'platform', 'type', 'nickname', 'price'],
    ];
}